package com.gdkm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import com.gdkm.po.Student;
import com.gdkm.po.UserManagement;

@Repository
@Mapper
public interface PersonCenterDao {
	@Select("SELECT * FROM user_management where usercode=#{usercode}")
	List<UserManagement> listl(String usercode);

	@Update("UPDATE  user_management set usercode=#{usercode},password=#{password},name=#{name}"
			+ ",age=#{age},grade=#{grade},phoneNumber=#{phoneNumber},sex=#{sex}" + ",type=#{type} where id=#{id}")
	
	void update(UserManagement stu);

}
